import Vue from 'vue'
import Vuex from 'vuex'
import createLogger from 'vuex/dist/logger'
import createPersistedState from "vuex-persistedstate";

import collectlist from '@/store/modules/collectlist'
import history from '@/store/modules/history'
import shopcart from './modules/shopcart';
import address from './modules/address'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    'collectlist':collectlist,
    'history':history,
    'shopcart':shopcart,
    'address':address,
  },
  plugins:[createLogger(),createPersistedState()]
})
